<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <title>商品上新</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <script src="__PUBLIC__/js/rem.js"></script> 
    <script src="__PUBLIC__/js/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="__PUBLIC__/js/jquery.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/upload.js"></script>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/base.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/page.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/all.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/mui.min.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/loaders.min.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/loading.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/slick/slick.css"/>
    <style type="text/css">
      .selectfiles:hover{background-image:url("__PUBLIC__/img/fileupload01.png")}
      .selectfiles{background-image:url("__PUBLIC__/img/fileupload.png");margin-right:5px;background-size:100% 100%;background-position:center;background-repeat:no-repeat;height:129px;width:129px;float:left;background-color:transparent!important;margin:0 0 0 5px!important;border:0;cursor:pointer}
    </style>
	<script type="text/javascript">
		$(window).load(function(){
			$(".loading").addClass("loader-chanage")
			$(".loading").fadeOut(300)
		})
	</script>
</head>
<!--loading页开始-->
<div class="loading">
	<div class="loader">
        <div class="loader-inner pacman">
          <div></div>
          <div></div>
          <div></div>
          <div></div>
          <div></div>
        </div>
	</div>
</div>
<!--loading页结束-->
	<body>
		<div class="center-header clearfloat" id="header">
			<a href="__URL__/seigOut" class="fr shezhi">退出</a>
			<div class="top fl clearfloat box-s">
				<a href="#">
					<div class="tu fl">
						<span></span>
						<img src="<?php echo $res[0]['head_pic']; ?>"/>
					</div>
					<p class="tit fl"><?php echo $res[0]['name']; ?></p>
					<p class="tit fl">您的当前积分【<?php echo $res[0]['shop_points']; ?>】</p>
				</a>
			</div>
			<div class="bottom clearfloat">
				<ul>
					<li>
						<a href="__URL__/buyNum" class="clearfloat">
							<p><?php echo $count; ?></p>
							<p>积分明细</p>
						</a>
					</li>
					<li>
						<a href="#" class="clearfloat">
							<p><?php echo $res[0]['use_points']; ?></p>
							<p>可提现积分</p>
						</a>
					</li>
					<li>
						<a href="#" class="clearfloat">
							<p>我要</p>
							<p>推广</p>
						</a>
					</li>
					<li>
						<a href="__URL__/tMoney" class="clearfloat">
							<p>我要</p>
							<p>提现</p>
						</a>
					</li>
				</ul>
			</div>
		</div>
		
		<div class="rent clearfloat" id="main">
			<div class="top clearfloat">
				<ul>
					<li>
						<a href="__URL__/buy">购买积分</a>
					</li>
					<li>
						<a href="#">赠送积分</a>
					</li>
					<li class="cur">
						<a href="__URL__/goods">商品上新</a>
					</li>
					<li>
						<a href="__URL__/change">信息修改</a>
					</li>
				</ul>
			</div>
			
			<div class="register clearfloat" id="main">
				<form action="__URL__/goodsTo" method="post" class="cmxform" id="signupForm" enctype="multipart/form-data">
					<input type="hidden" name="id" id="contacts" value="<?php echo $res[0]['shop_id']; ?>"/>
					<ul>
						<li class="clearfloat">
							<p class="tit fl">商品名字</p>
							<input type="text" name="name" id="name" value="" class="shuru fl" placeholder="请输入商品名字"  required/>
						</li>
						<li class="clearfloat">
							<p class="tit fl">商品类别</p>
							<select class="shuru fl" name="type" size="1" id="type">
								<option value="">请选择</option>
								<volist name="classRes" id="vo" >
									<option value="{$vo.name}">
									{$vo.name}</option>
								</volist>
							</select>
						</li>
						<li class="clearfloat">
							<p class="tit fl">商品简介</p>
							<input type="textarea" name="synopsis" id="synopsis" value="" class="shuru fl" placeholder="请输入商品简介"  required/>
						</li>
						<li class="clearfloat">
							<p class="tit fl"> 图片1</p>
							<p id="preview1" style="float:left;margin-left:10px;">
								
							</p>     
					        <input type="file" id="photo1" name="photo1"  style="display: none;" onchange="previewImage(this, 'preview1', 'imghead1')" />  
					        <label  class="selectfiles" for="photo1" style="position: relative; z-index: 1;"></label>
						</li>
						<li class="clearfloat">
							<p class="tit fl"> 图片2</p>
							<p id="preview2" style="float:left;margin-left:10px;"> 
								
							</p>     
					        <input type="file" id="photo2" name="photo2"  style="display: none;" onchange="previewImage(this, 'preview2', 'imghead2')" />  
					        <label  class="selectfiles" for="photo2" style="position: relative; z-index: 1;"></label>
						</li>
					</ul>
					<input type="submit" value="保存" class="pay-btn clearfloat">
				</form>
			</div>
		</div>
	</body>
	<script type="text/javascript" src="__PUBLIC__/js/jquery-1.8.3.min.js" ></script>
	<script type="text/javascript" src="__PUBLIC__/js/jquery.SuperSlide.2.1.js" ></script>
	<script type="text/javascript" src="__PUBLIC__/slick/slick.min.js" ></script>
	<script type="text/javascript" src="__PUBLIC__/js/jquery.leanModal.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/tchuang.js" ></script>
	<script type="text/javascript" src="__PUBLIC__/js/hmt.js" ></script>
</html>
